package com.linghang.association.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class UserSignUpExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserSignUpExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStuNameIsNull() {
            addCriterion("stu_name is null");
            return (Criteria) this;
        }

        public Criteria andStuNameIsNotNull() {
            addCriterion("stu_name is not null");
            return (Criteria) this;
        }

        public Criteria andStuNameEqualTo(String value) {
            addCriterion("stu_name =", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameNotEqualTo(String value) {
            addCriterion("stu_name <>", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameGreaterThan(String value) {
            addCriterion("stu_name >", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameGreaterThanOrEqualTo(String value) {
            addCriterion("stu_name >=", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameLessThan(String value) {
            addCriterion("stu_name <", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameLessThanOrEqualTo(String value) {
            addCriterion("stu_name <=", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameLike(String value) {
            addCriterion("stu_name like", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameNotLike(String value) {
            addCriterion("stu_name not like", value, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameIn(List<String> values) {
            addCriterion("stu_name in", values, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameNotIn(List<String> values) {
            addCriterion("stu_name not in", values, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameBetween(String value1, String value2) {
            addCriterion("stu_name between", value1, value2, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuNameNotBetween(String value1, String value2) {
            addCriterion("stu_name not between", value1, value2, "stuName");
            return (Criteria) this;
        }

        public Criteria andStuGenderIsNull() {
            addCriterion("stu_gender is null");
            return (Criteria) this;
        }

        public Criteria andStuGenderIsNotNull() {
            addCriterion("stu_gender is not null");
            return (Criteria) this;
        }

        public Criteria andStuGenderEqualTo(String value) {
            addCriterion("stu_gender =", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderNotEqualTo(String value) {
            addCriterion("stu_gender <>", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderGreaterThan(String value) {
            addCriterion("stu_gender >", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderGreaterThanOrEqualTo(String value) {
            addCriterion("stu_gender >=", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderLessThan(String value) {
            addCriterion("stu_gender <", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderLessThanOrEqualTo(String value) {
            addCriterion("stu_gender <=", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderLike(String value) {
            addCriterion("stu_gender like", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderNotLike(String value) {
            addCriterion("stu_gender not like", value, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderIn(List<String> values) {
            addCriterion("stu_gender in", values, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderNotIn(List<String> values) {
            addCriterion("stu_gender not in", values, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderBetween(String value1, String value2) {
            addCriterion("stu_gender between", value1, value2, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuGenderNotBetween(String value1, String value2) {
            addCriterion("stu_gender not between", value1, value2, "stuGender");
            return (Criteria) this;
        }

        public Criteria andStuBirIsNull() {
            addCriterion("stu_bir is null");
            return (Criteria) this;
        }

        public Criteria andStuBirIsNotNull() {
            addCriterion("stu_bir is not null");
            return (Criteria) this;
        }

        public Criteria andStuBirEqualTo(Date value) {
            addCriterionForJDBCDate("stu_bir =", value, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirNotEqualTo(Date value) {
            addCriterionForJDBCDate("stu_bir <>", value, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirGreaterThan(Date value) {
            addCriterionForJDBCDate("stu_bir >", value, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("stu_bir >=", value, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirLessThan(Date value) {
            addCriterionForJDBCDate("stu_bir <", value, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("stu_bir <=", value, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirIn(List<Date> values) {
            addCriterionForJDBCDate("stu_bir in", values, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirNotIn(List<Date> values) {
            addCriterionForJDBCDate("stu_bir not in", values, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("stu_bir between", value1, value2, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuBirNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("stu_bir not between", value1, value2, "stuBir");
            return (Criteria) this;
        }

        public Criteria andStuEthnicIsNull() {
            addCriterion("stu_ethnic is null");
            return (Criteria) this;
        }

        public Criteria andStuEthnicIsNotNull() {
            addCriterion("stu_ethnic is not null");
            return (Criteria) this;
        }

        public Criteria andStuEthnicEqualTo(String value) {
            addCriterion("stu_ethnic =", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicNotEqualTo(String value) {
            addCriterion("stu_ethnic <>", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicGreaterThan(String value) {
            addCriterion("stu_ethnic >", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicGreaterThanOrEqualTo(String value) {
            addCriterion("stu_ethnic >=", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicLessThan(String value) {
            addCriterion("stu_ethnic <", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicLessThanOrEqualTo(String value) {
            addCriterion("stu_ethnic <=", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicLike(String value) {
            addCriterion("stu_ethnic like", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicNotLike(String value) {
            addCriterion("stu_ethnic not like", value, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicIn(List<String> values) {
            addCriterion("stu_ethnic in", values, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicNotIn(List<String> values) {
            addCriterion("stu_ethnic not in", values, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicBetween(String value1, String value2) {
            addCriterion("stu_ethnic between", value1, value2, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuEthnicNotBetween(String value1, String value2) {
            addCriterion("stu_ethnic not between", value1, value2, "stuEthnic");
            return (Criteria) this;
        }

        public Criteria andStuAgeIsNull() {
            addCriterion("stu_age is null");
            return (Criteria) this;
        }

        public Criteria andStuAgeIsNotNull() {
            addCriterion("stu_age is not null");
            return (Criteria) this;
        }

        public Criteria andStuAgeEqualTo(Integer value) {
            addCriterion("stu_age =", value, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeNotEqualTo(Integer value) {
            addCriterion("stu_age <>", value, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeGreaterThan(Integer value) {
            addCriterion("stu_age >", value, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("stu_age >=", value, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeLessThan(Integer value) {
            addCriterion("stu_age <", value, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeLessThanOrEqualTo(Integer value) {
            addCriterion("stu_age <=", value, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeIn(List<Integer> values) {
            addCriterion("stu_age in", values, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeNotIn(List<Integer> values) {
            addCriterion("stu_age not in", values, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeBetween(Integer value1, Integer value2) {
            addCriterion("stu_age between", value1, value2, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("stu_age not between", value1, value2, "stuAge");
            return (Criteria) this;
        }

        public Criteria andStuPhoneIsNull() {
            addCriterion("stu_phone is null");
            return (Criteria) this;
        }

        public Criteria andStuPhoneIsNotNull() {
            addCriterion("stu_phone is not null");
            return (Criteria) this;
        }

        public Criteria andStuPhoneEqualTo(String value) {
            addCriterion("stu_phone =", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneNotEqualTo(String value) {
            addCriterion("stu_phone <>", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneGreaterThan(String value) {
            addCriterion("stu_phone >", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("stu_phone >=", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneLessThan(String value) {
            addCriterion("stu_phone <", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneLessThanOrEqualTo(String value) {
            addCriterion("stu_phone <=", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneLike(String value) {
            addCriterion("stu_phone like", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneNotLike(String value) {
            addCriterion("stu_phone not like", value, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneIn(List<String> values) {
            addCriterion("stu_phone in", values, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneNotIn(List<String> values) {
            addCriterion("stu_phone not in", values, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneBetween(String value1, String value2) {
            addCriterion("stu_phone between", value1, value2, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhoneNotBetween(String value1, String value2) {
            addCriterion("stu_phone not between", value1, value2, "stuPhone");
            return (Criteria) this;
        }

        public Criteria andStuPhotoIsNull() {
            addCriterion("stu_photo is null");
            return (Criteria) this;
        }

        public Criteria andStuPhotoIsNotNull() {
            addCriterion("stu_photo is not null");
            return (Criteria) this;
        }

        public Criteria andStuPhotoEqualTo(String value) {
            addCriterion("stu_photo =", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoNotEqualTo(String value) {
            addCriterion("stu_photo <>", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoGreaterThan(String value) {
            addCriterion("stu_photo >", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("stu_photo >=", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoLessThan(String value) {
            addCriterion("stu_photo <", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoLessThanOrEqualTo(String value) {
            addCriterion("stu_photo <=", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoLike(String value) {
            addCriterion("stu_photo like", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoNotLike(String value) {
            addCriterion("stu_photo not like", value, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoIn(List<String> values) {
            addCriterion("stu_photo in", values, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoNotIn(List<String> values) {
            addCriterion("stu_photo not in", values, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoBetween(String value1, String value2) {
            addCriterion("stu_photo between", value1, value2, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuPhotoNotBetween(String value1, String value2) {
            addCriterion("stu_photo not between", value1, value2, "stuPhoto");
            return (Criteria) this;
        }

        public Criteria andStuQqIsNull() {
            addCriterion("stu_qq is null");
            return (Criteria) this;
        }

        public Criteria andStuQqIsNotNull() {
            addCriterion("stu_qq is not null");
            return (Criteria) this;
        }

        public Criteria andStuQqEqualTo(String value) {
            addCriterion("stu_qq =", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqNotEqualTo(String value) {
            addCriterion("stu_qq <>", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqGreaterThan(String value) {
            addCriterion("stu_qq >", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqGreaterThanOrEqualTo(String value) {
            addCriterion("stu_qq >=", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqLessThan(String value) {
            addCriterion("stu_qq <", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqLessThanOrEqualTo(String value) {
            addCriterion("stu_qq <=", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqLike(String value) {
            addCriterion("stu_qq like", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqNotLike(String value) {
            addCriterion("stu_qq not like", value, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqIn(List<String> values) {
            addCriterion("stu_qq in", values, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqNotIn(List<String> values) {
            addCriterion("stu_qq not in", values, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqBetween(String value1, String value2) {
            addCriterion("stu_qq between", value1, value2, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuQqNotBetween(String value1, String value2) {
            addCriterion("stu_qq not between", value1, value2, "stuQq");
            return (Criteria) this;
        }

        public Criteria andStuIdeaIsNull() {
            addCriterion("stu_idea is null");
            return (Criteria) this;
        }

        public Criteria andStuIdeaIsNotNull() {
            addCriterion("stu_idea is not null");
            return (Criteria) this;
        }

        public Criteria andStuIdeaEqualTo(String value) {
            addCriterion("stu_idea =", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaNotEqualTo(String value) {
            addCriterion("stu_idea <>", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaGreaterThan(String value) {
            addCriterion("stu_idea >", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaGreaterThanOrEqualTo(String value) {
            addCriterion("stu_idea >=", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaLessThan(String value) {
            addCriterion("stu_idea <", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaLessThanOrEqualTo(String value) {
            addCriterion("stu_idea <=", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaLike(String value) {
            addCriterion("stu_idea like", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaNotLike(String value) {
            addCriterion("stu_idea not like", value, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaIn(List<String> values) {
            addCriterion("stu_idea in", values, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaNotIn(List<String> values) {
            addCriterion("stu_idea not in", values, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaBetween(String value1, String value2) {
            addCriterion("stu_idea between", value1, value2, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuIdeaNotBetween(String value1, String value2) {
            addCriterion("stu_idea not between", value1, value2, "stuIdea");
            return (Criteria) this;
        }

        public Criteria andStuAdvIsNull() {
            addCriterion("stu_adv is null");
            return (Criteria) this;
        }

        public Criteria andStuAdvIsNotNull() {
            addCriterion("stu_adv is not null");
            return (Criteria) this;
        }

        public Criteria andStuAdvEqualTo(String value) {
            addCriterion("stu_adv =", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvNotEqualTo(String value) {
            addCriterion("stu_adv <>", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvGreaterThan(String value) {
            addCriterion("stu_adv >", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvGreaterThanOrEqualTo(String value) {
            addCriterion("stu_adv >=", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvLessThan(String value) {
            addCriterion("stu_adv <", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvLessThanOrEqualTo(String value) {
            addCriterion("stu_adv <=", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvLike(String value) {
            addCriterion("stu_adv like", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvNotLike(String value) {
            addCriterion("stu_adv not like", value, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvIn(List<String> values) {
            addCriterion("stu_adv in", values, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvNotIn(List<String> values) {
            addCriterion("stu_adv not in", values, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvBetween(String value1, String value2) {
            addCriterion("stu_adv between", value1, value2, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andStuAdvNotBetween(String value1, String value2) {
            addCriterion("stu_adv not between", value1, value2, "stuAdv");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNull() {
            addCriterion("department_id is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIsNotNull() {
            addCriterion("department_id is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdEqualTo(Integer value) {
            addCriterion("department_id =", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotEqualTo(Integer value) {
            addCriterion("department_id <>", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThan(Integer value) {
            addCriterion("department_id >", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("department_id >=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThan(Integer value) {
            addCriterion("department_id <", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdLessThanOrEqualTo(Integer value) {
            addCriterion("department_id <=", value, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdIn(List<Integer> values) {
            addCriterion("department_id in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotIn(List<Integer> values) {
            addCriterion("department_id not in", values, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdBetween(Integer value1, Integer value2) {
            addCriterion("department_id between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andDepartmentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("department_id not between", value1, value2, "departmentId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andGradesIsNull() {
            addCriterion("grades is null");
            return (Criteria) this;
        }

        public Criteria andGradesIsNotNull() {
            addCriterion("grades is not null");
            return (Criteria) this;
        }

        public Criteria andGradesEqualTo(Integer value) {
            addCriterion("grades =", value, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesNotEqualTo(Integer value) {
            addCriterion("grades <>", value, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesGreaterThan(Integer value) {
            addCriterion("grades >", value, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesGreaterThanOrEqualTo(Integer value) {
            addCriterion("grades >=", value, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesLessThan(Integer value) {
            addCriterion("grades <", value, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesLessThanOrEqualTo(Integer value) {
            addCriterion("grades <=", value, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesIn(List<Integer> values) {
            addCriterion("grades in", values, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesNotIn(List<Integer> values) {
            addCriterion("grades not in", values, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesBetween(Integer value1, Integer value2) {
            addCriterion("grades between", value1, value2, "grades");
            return (Criteria) this;
        }

        public Criteria andGradesNotBetween(Integer value1, Integer value2) {
            addCriterion("grades not between", value1, value2, "grades");
            return (Criteria) this;
        }

        public Criteria andStatuIsNull() {
            addCriterion("statu is null");
            return (Criteria) this;
        }

        public Criteria andStatuIsNotNull() {
            addCriterion("statu is not null");
            return (Criteria) this;
        }

        public Criteria andStatuEqualTo(Integer value) {
            addCriterion("statu =", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuNotEqualTo(Integer value) {
            addCriterion("statu <>", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuGreaterThan(Integer value) {
            addCriterion("statu >", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuGreaterThanOrEqualTo(Integer value) {
            addCriterion("statu >=", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuLessThan(Integer value) {
            addCriterion("statu <", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuLessThanOrEqualTo(Integer value) {
            addCriterion("statu <=", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuIn(List<Integer> values) {
            addCriterion("statu in", values, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuNotIn(List<Integer> values) {
            addCriterion("statu not in", values, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuBetween(Integer value1, Integer value2) {
            addCriterion("statu between", value1, value2, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuNotBetween(Integer value1, Integer value2) {
            addCriterion("statu not between", value1, value2, "statu");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}